const mongoose = require('mongoose')
const model = mongoose.model('items', new mongoose.Schema({
    name: String,
    //对于图片保存一般都保存图片地址
    icon: String,
    parent: { type: mongoose.Schema.Types.ObjectId, ref: 'items' }
}))
module.exports = model